package com.ld.security.server.blog.modules.cms.service.impl;

import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.ld.security.common.core.base.SuperPo;
import com.ld.security.common.core.util.StringUtil;
import com.ld.security.common.mybatis.base.service.ISuperServiceImpl;
import com.ld.security.common.mybatis.core.wrapper.EntityWrapper;
import com.ld.security.server.blog.modules.cms.entity.CmsContentEntity;
import com.ld.security.server.blog.modules.cms.mapping.CmsContentMapping;
import com.ld.security.server.blog.modules.cms.service.ICmsContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class CmsContentServiceImpl extends ISuperServiceImpl<CmsContentEntity>
        implements
        ICmsContentService {

    @Autowired
    CmsContentMapping cmsContentMapping;




    @Override
    public CmsContentEntity getArticle(String id) {
        CmsContentEntity e =   this.getById(id);


        cmsContentMapping.incrTotal(id);

        return e;
    }


}
